<?php defined('SYSPATH') OR die('No direct access allowed.');

class Token {

	private $id;
	private $lexeme;
	private $position;
	
	private $row;
	private $col;

	public function __construct($col, $row){
		$this->row = $row;
		$this->col = $col;
	}
	
	public function getId(){
        return $this->id;
    }

    public function getLexeme(){
        return $this->lexeme;
    }

    public function getPosition(){
        return $this->position;
    }
    
	public function setId($id){
        $this->id = $id;
    }

    public function setLexeme($lexeme){
        $this->lexeme = $lexeme;
    }

    public function setPosition($posistion){
        $this->position = $posistion;
    }

    public function __toString(){
        return $this->id." ( ".$this->lexeme." ) @ ".$this->position;
    }
    
    public function getRow(){
        return $this->row;
    }

    public function getCol(){
        return $this->col;
    }
	public function setRow($row2){
        $this->row = $row2;
    }
	public function setCol($col2){
        $this->col = $col2;
    }
    
} // End Token